import spock.lang.Specification

import static spock.util.matcher.HamcrestMatchers.closeTo

/**
 * Created by houjinxin on 17-4-1.
 */
class HamcrestMatchersSpec extends Specification {

    def "comparing two decimal numbers"() {
        def myPi = 3.14

        expect:
            myPi closeTo(Math.PI, 0.01)
    }

}
